package ws.performancetest.tests.samples;

import java.util.ServiceLoader;
import ws.performancetest.api.TestSuite;

/**
 * Run all {@link TestSuite} that can be found.
 * 
 * @author Wilson Santos, 36228 <wilson.santos@ua.pt>
 */
public class RunTests {

  public static void main(String[] args) throws Exception {
    ServiceLoader<TestSuite> testSuiteLoader = ServiceLoader.load(ws.performancetest.api.TestSuite.class);
    for (TestSuite ts : testSuiteLoader) {
      System.out.println(ts.getClass().getName());
      ts.runAllTests();
    }
  }
}
